<#if sessions?has_content>
<table>
	<thead>
		<tr>
			<th>Id</th>
			<th>Name</th>
			<th>Date</th>
			<th>Session Type</th>
			<th>Teacher</th>
		</tr>
	</thead>
	<tbody>
		<#list sessions as session>
			<tr>
				<td>${session.id?c}</td>
				<td>${session.name}</td>
				<td>${session.date}</td>
				<td>${session.typeName}</td>
				<td>${session.teacher.firstName} ${session.teacher.lastName}</td>
			</tr>
		</#list>
	</tbody>
</table>
<#else>
<h2>There is no session.</h2>
</#if>

<#if credentials.isAdmin>
<p>
<a href="${rootPath}/courses/${courseId?c}/addsession">Add new Teaching Session</a>
</p>
</#if>
